<% record_set = grab_attributes(pwd)['record_set'] -%>
<% managed_zone = grab_attributes(pwd)['managed_zone'] -%>
describe google_dns_resource_record_set(project: <%= "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%>, name: <%= doc_generation ? "'#{record_set['name']}'" : "record_set['name']" -%>, type: <%= doc_generation ? "'#{record_set['type']}'" : "record_set['type']" -%>, managed_zone: <%= doc_generation ? "'#{managed_zone['name']}'" : "managed_zone['name']" -%>) do
  it { should exist }
  its('type') { should eq <%= doc_generation ? "'#{record_set['type']}'" : "record_set['type']" -%> }
  its('ttl') { should eq <%= doc_generation ? "'#{record_set['ttl']}'" : "record_set['ttl']" -%> }
  its('target') { should include <%= doc_generation ? "'#{record_set['rrdatas1']}'" : "record_set['rrdatas1']" -%> }
  its('target') { should include <%= doc_generation ? "'#{record_set['rrdatas2']}'" : "record_set['rrdatas2']" -%> }
end